package com.kingstar.ceres.data.properties;

import lombok.Data;

@Data
public class FileParseProperties {

    /* tag::common **/
    private int singleCoreSize=2;

    private int singleMaxSize=2;

    private int singleQueueSize=1000;

    private long singleKeepAlive=3;

    private int singleWaitInterval=10;
    /* end::common **/

    private CsvFileProperties csv=new CsvFileProperties();

    private ExcelFileProperties excel=new ExcelFileProperties();

    @Data
    public static class CsvFileProperties{
        private String charset="utf-8";

        private int readLines=200;

        private String fileDir;

        private Boolean needCheckOk=false;

        private String okFileName="trans.ok";

        private Boolean needAdvice=true;

        private int parseCoreSize=0;

        private int insertCommit=100;
    }

    @Data
    public static class ExcelFileProperties{

        private int readLines=1000;

        private String fileDir;

        private Boolean needCheckOk=false;

        private String okFileName;
    }
}
